package com.example.demo001.context;

public class BaseContext {
    private BaseContext() {
    }

    public static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(String username) {
        threadLocal.set(username);
    }

    public static String getCurrent() {
        return threadLocal.get();
    }

    public static void removeCurrent() {
        threadLocal.remove();
    }

}
